home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Demos / Bowers Development / AppMaker 2.0b5 / Examples / PowerPlant / Gadgets / CAboutDialog.h < prev    next >
Encoding:
Text File  |  1996-03-19  |  1.1 KB  |  49 lines  |  [TEXT/CWIE]

  1. // CAboutDialog.h -- dialog class
  2. // Created 3/19/96 12:49 PM by AppMaker
  3.  
  4. #pragma once
  5.  
  6. #include <LDialogBox.h>
  7.  
  8. class    LStream;
  9.  
  10. class    LStdButton;
  11.  
  12. #define cmd_AboutDialog        'Abog'
  13.  
  14. //----------
  15. class    CAboutDialog :    public LDialogBox {
  16. public:    // these comprise the programming interface for using the dialog
  17.     static    CAboutDialog*        CreateAboutDialog        (LCommander        *inSuperCommander);
  18.  
  19. public:    // these comprise the implementation
  20.     static    CAboutDialog*    CreateAboutDialogStream    (LStream    *inStream);
  21.  
  22.                         CAboutDialog();
  23.                         CAboutDialog        (LStream    *inStream);
  24.     virtual                ~CAboutDialog();
  25.  
  26.     virtual void        ListenToMessage        (MessageT    inMessage,
  27.                                              void        *ioParam);
  28.  
  29.     virtual Boolean        ObeyCommand            (CommandT    inCommand,
  30.                                              void        *ioParam = nil);
  31.     virtual void        FindCommandStatus    (CommandT    inCommand,
  32.                                              Boolean    &outEnabled,
  33.                                              Boolean    &outUsesMark,
  34.                                              Char16        &outMark,
  35.                                              Str255        outName);
  36.     virtual Boolean        FocusDraw();
  37.  
  38. protected:
  39.     static    void        RegisterClass();
  40.     virtual void        FinishCreateSelf();
  41.  
  42. protected:
  43.  
  44. protected:
  45.     static Boolean        sIsRegistered;
  46.  
  47.     LStdButton*        mOKButton;
  48. };
  49.